package ifmo.itip.applesgame;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.Scanner;
import java.util.zip.DataFormatException;

public class Main 
{

	@SuppressWarnings("resource")
	public static void main(String[] args) throws DataFormatException 
	{
		Scanner in;
		try 
		{
			in = new Scanner(new FileReader("apple.in"));
			if(!in.hasNextInt()) throw new DataFormatException("Неверные данные");
			int N = in.nextInt();
			Integer field[][] = new Integer[N][N];
			if(!in.hasNextInt()) throw new DataFormatException("Неверные данные");
			int M = in.nextInt();
			if(!in.hasNext()) throw new DataFormatException("Неверные данные");
			float P = Float.parseFloat(in.next());
			in.close();
			Dispatcher d = new Dispatcher();
			d.Start(N,M,P);
		} 
		catch (FileNotFoundException e) 
		{
			e.printStackTrace();
		}

	}

}
